From: Chad Horohoe Date: Mon, 29 Sep 2008 06:24:32 +0000 (+0000) Subject: * Remove unneeded ini_set() from a very long time ago. Can't run this on allow_url_fo... X-Git-Tag: 1.31.0-rc.0~45029 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=1bc6db839f980d9ee2f06a948454ebefc5eae7b8;p=lhc%2Fweb%2Fwiklou.git * Remove unneeded ini_set() from a very long time ago. Can't run this on allow_url_fopen nowadays. * Remove extra global declaration. --- diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 978509ee07..4efcd9d621 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -94,7 +94,6 @@ class Http { # Otherwise use file_get_contents... # This doesn't have local fetch capabilities... - global $wgVersion; $headers = array( "User-Agent: MediaWiki/$wgVersion" ); if( strcasecmp( $method, 'post' ) == 0 ) { // Required for HTTP 1.0 POSTs @@ -107,9 +106,7 @@ class Http { 'timeout' => $timeout ) ); $ctx = stream_context_create($opts); - $url_fopen = ini_set( 'allow_url_fopen', 1 ); $text = file_get_contents( $url, false, $ctx ); - ini_set( 'allow_url_fopen', $url_fopen ); } return $text; }